package cn.mxb.logic.service;

import java.util.List;

import cn.mxb.floor.pagination.Result;
import cn.mxb.logic.entity.SysFamily;

public interface ISysFamilyService {
	
	/**
	 *  根据property的value查询 
	 * @param property
	 * @param value
	 * @return SysFamily
	 */
	public SysFamily findByProperty(String property,String value);
	/**
	 * @return_type: Result<SysFamily>
	 * @file_name: 分页查询
	 */
	public Result<SysFamily> find(SysFamily sysFamily,int page, int row);
	
	/**
	 * @return_type: SysFamily
	 * @file_name: 添加
	 */
	public SysFamily add(SysFamily sysFamily);
	
	/**
	 * 删除
	 * @return_type: void
	 */
	public void delete(int id);
	
	/**
	 * 修改
	 * @return_type: void
	 */
	public void update(SysFamily sysFamily);
	
    
    /**
     * 根据property的value查询 
     * @return_type: List<SysFamily>
     */
    public List<SysFamily> findListByProperty(String property,String value);
    
    /**
     * 根据2property的2value查询 
     * @return_type: List<SysFamily>
     */
    public List<SysFamily> findListByPropertyTwo(String property,String value,String property2,String value2);
    
    /**
     * 全部查询
     * @return_type: List<SysFamily>
     */
    public List<SysFamily> findAllList();
    
    /**
     * 修改table表的field字段为fieldvalue根据property的value
     * @param table
     * @param field
     * @param property
     * @param value
     * @param fieldvalue
     */
    public void updatetablebyproperty(String table,String field,String property,String value,int fieldvalue);
}
